#include<bits/stdc++.h>
#include<unistd.h>
#include<signal.h>
using namespace std;
void Handler(int sign_num){
cout<<"Get asignal ,it is "<<sign_num<<endl;
}
int main(){
   for(int i=1;i<32;i++)
     signal(i,Handler);
    while(true){
        cout<<"hello"<<endl;
        sleep(1);
    }
    return 0;
}